package com.realgodo.site.entity.application.secret;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

import com.realgodo.site.entity.application.Application;


@Entity(name="Secret")
@Table(name = "secret")
@Inheritance(strategy = InheritanceType.JOINED)
@PrimaryKeyJoinColumn(name = "id", referencedColumnName = "id")
public class Secret extends Application {

	/***/
	private static final long serialVersionUID = -6594630360569279387L;
	
	/**秘密题目*/
	private String title;
	/**秘密答案*/
	private String answer;
	/**发布时间*/
	private Date pubTime;
	/**参与人数*/
	private Integer joiners=0;
	
	public Integer getJoiners() {
		return joiners;
	}

	public void setJoiners(Integer joiners) {
		this.joiners = joiners;
	}

	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAnswer() {
		return answer;
	}
	public void setAnswer(String answer) {
		this.answer = answer;
	}
	public Date getPubTime() {
		return pubTime;
	}
	public void setPubTime(Date pubTime) {
		this.pubTime = pubTime;
	}
	
	
	

}
